package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

/**
 * 随访任务表单
 *
 * @author yangfuya
 * @since 2022/1/5
 */
@Data
@Entity
@Table(name = "dr_follow_up_record_form")
public class DrFollowUpRecordForm implements Serializable {
    /**
     * 未填写
     */
    public static final int NOT_FILLIN = 0;
    /**
     * 已填写
     */
    public static final int FILLIN = 1;
    private static final long serialVersionUID = -9135187372760166833L;
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    /**
     * 随访任务id
     */
    @Column(name = "follow_up_id")
    private Long followUpId;

    /**
     * 随访表单id
     */
    @Column(name = "follow_up_form_id")
    private Long followUpFormId;

    /**
     * 表单id
     */
    @Column(name = "form_id")
    private String formId;

    /**
     * 随访表单名称
     */
    @Column(name = "form_name")
    private String formName;

    /**
     * 填写状态 0.未填写 1.已填写
     */
    @Column(name = "filling_status")
    private Integer fillingStatus;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 填写时间
     */
    @Column(name = "submit_at")
    private Date submitAt;
}
